package com.mojo.collection;

import java.util.ArrayList;
import java.util.Collections;

/**
 * 数组
 *
 * @author <a href="mailto:mojo_jj@163.com">Mojo</a>
 */
public class ArrayDemo {
    public static void main(String[] args) {
        //int[] ints = {1, 2, 3, 4};
        //ints[1] = 1;
        //for (int anInt : ints) {
        //    System.out.println(anInt);
        //}

        ArrayList<Object> list = new ArrayList<>();
        list.add("2");
        list.add("a");
        list.add("b");
        list.add("d");
        list.add("3");
        Collections.shuffle(list);
        System.out.println(list);
    }
}
